package com.car.dal.dao.rent;
import java.util.List;

import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.rent.Rent;
import com.car.util.Page;

public class RentDaoImp extends IbatisCommonDao<Rent, Long> implements RentDao{

	@Override
	public List<Rent> getRentByType(Rent rent, Page page) {
		rent.setFirstrownum(page.getFirstrownum());
		rent.setPagesize(page.getPagesize());
		return this.queryForEntityList(Rent.class, "getRentByType", rent);
	}

	@Override
	public Integer getCountRentByType(Rent rent) {
		return this.queryForInteger("getCountRentByType", rent);
	}

	@Override
	public List<Rent> getRentByType1(Rent rent) {
		return this.queryForEntityList(Rent.class, "getRentByType1", rent);
	}
	@Override
	public List<Rent> getRentByType2(Rent rent,Page page) {
		rent.setFirstrownum(page.getFirstrownum());
		rent.setPagesize(page.getPagesize());
		return this.queryForEntityList(Rent.class, "getRentByType2", rent);
	}

}
